package com.freight.user.service;

import com.freight.core.base.FreightBaseService;
import com.freight.core.common.vo.SearchVo;
import com.freight.file.vo.PicFileVo;
import com.freight.user.entity.IdCard;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

/**
 * 身份证接口
 *
 * @author huyingtai
 */
public interface IdCardService extends FreightBaseService<IdCard, Long> {



    /**
     * 多条件分页获取
     *
     * @param idCard
     * @param searchVo
     * @param pageable
     * @return
     */
    Page<IdCard> findByCondition(IdCard idCard, SearchVo searchVo, Pageable pageable);

    /**
     * @param file
     * @param userId
     * @return
     */
    PicFileVo upLoadIdCard(MultipartFile file, String fileConstant, Long userId);





    /**
     * 返回当前用户的Idcard的信息
     * @return
     */
    IdCard getIdCarDInfo(Long userId);
}